<% title @milestone.title %>
<% subtitle 'Due ' + l(@milestone.due, :format => :long) %>

<%= simple_format h(@milestone.description) %>

<% if @milestone.comments.size > 0 %>
	<h1><%= t :comment, :count => @milestone.comments.size %></h1>
	<hr />
<% end %>
	
<%= render :partial => 'comments/list', :locals => {:commentable => @milestone} %>

<%= render :partial => 'comments/form', :locals => {:commentable => @milestone}  %>


<% content_for :sidebar do %>
	<p class="title lightest rounded-5"><%= t :milestone_activities, :scope => :milestone %></p>
	
	<dl class="icon-list">
	<% for activity in @milestone.activities %>
		<dt class="icon <%= activity.completed? ? 'tick' : 'bullet-red' %>"><%= link_to activity.title, project_activity_path(@project, activity) %></dt>
		<dd><%= activity.responsible.name unless activity.responsible.nil? %></dd>
	<% end %>
	</dl>
	
<% end %>

<% content_for :subtabs do %>
	<%= render 'milestones/navigation/show_subtabs' %>
<% end %>